package com.cn.dream_order_server.client;


import org.elasticsearch.common.recycler.Recycler;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpSession;

@Component
@FeignClient(name = "DREAM-USER-SERVICE")
public interface UserSiteServer {

    @PostMapping(value = "/sitelist",produces="application/json")
    public String getSiteList();


    @RequestMapping(value = "/getUserSiteBySiteId",produces="application/json")
    public String getUserSiteBySiteId(@RequestParam(value = "siteId") String siteId);
}
